package com.pccc.batch.config.remotepartition.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import com.pccc.batch.config.remotepartition.asyn.AsynStepEvent;

@Service
public class PublishEventService {

	@Autowired
	private ApplicationContext context;
	
	@Async("applicationTaskExecutor")
	public void sendStep(AsynStepEvent event) {
		context.publishEvent(event);
	}
	
}
